package com.micromall.repository.entity.admin;

import com.micromall.repository.entity.common.ProductParamsKeys;
import com.micromall.repository.entity.common.PromotionConfigKeys;

import java.math.BigDecimal;
import java.util.Map;

/**
 * Created by zhangzx on 16/3/28.
 */
public class AdminGoodsList {

	// 商品ID
	private int                 id;
	// 商品标题
	private String              title;
	// 商品主图片
	private String              image;
	// 所属类目
	private String              categoryName;
	// 商品价格
	private BigDecimal          price;
	// 商品原始价格
	private BigDecimal          originPrice;
	// 商品库存
	private Integer             inventory;
	// 是否上架（商品卖完后自动下架）(详情页、收藏、购物车用到)
	private Boolean             shelves;
	// 是否促销商品
	private Boolean             promotion;
	/**
	 * 促销配置(JSON数据) {@link PromotionConfigKeys}
	 */
	private Map<String, Object> promotionParams;
	/**
	 * 产品参数(JSON数据) {@link ProductParamsKeys}
	 */
	private Map<String, Object> productParams;
	// 商品销量
	private Integer             salesVolume;
	// 商品点击量
	private Integer             clicked;

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getImage() {
		return image;
	}

	public void setImage(String image) {
		this.image = image;
	}

	public String getCategoryName() {
		return categoryName;
	}

	public void setCategoryName(String categoryName) {
		this.categoryName = categoryName;
	}

	public BigDecimal getPrice() {
		return price;
	}

	public void setPrice(BigDecimal price) {
		this.price = price;
	}

	public BigDecimal getOriginPrice() {
		return originPrice;
	}

	public void setOriginPrice(BigDecimal originPrice) {
		this.originPrice = originPrice;
	}

	public Integer getInventory() {
		return inventory;
	}

	public void setInventory(Integer inventory) {
		this.inventory = inventory;
	}

	public Boolean getShelves() {
		return shelves;
	}

	public void setShelves(Boolean shelves) {
		this.shelves = shelves;
	}

	public Boolean getPromotion() {
		return promotion;
	}

	public void setPromotion(Boolean promotion) {
		this.promotion = promotion;
	}

	public Map<String, Object> getPromotionParams() {
		return promotionParams;
	}

	public void setPromotionParams(Map<String, Object> promotionParams) {
		this.promotionParams = promotionParams;
	}

	public Map<String, Object> getProductParams() {
		return productParams;
	}

	public void setProductParams(Map<String, Object> productParams) {
		this.productParams = productParams;
	}

	public Integer getSalesVolume() {
		return salesVolume;
	}

	public void setSalesVolume(Integer salesVolume) {
		this.salesVolume = salesVolume;
	}

	public Integer getClicked() {
		return clicked;
	}

	public void setClicked(Integer clicked) {
		this.clicked = clicked;
	}
}
